package com.gjs.cd.mapper;


import com.gjs.cd.pojo.entity.CdCodeActivationRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommonMapper  {

    //判断表是否存在
    int isTableExist(@Param("tableName")String tableName);

    //统计数量
    int queryCodeTotal(@Param("tableName")String tableName);

    //创建激活码表
    int createCdCode(@Param("tableName")String tableName,@Param("subjectName") String subjectName);

    //创建激活码记录表
    int createCdCodeRecord(@Param("tableName")String tableName,@Param("subjectName") String subjectName);

    //获取激活码记录表
    List<String> queryRecordTableName();





}
